package com.example.opendemo.conpen;

import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
import org.opencv.highgui.HighGui;
import org.opencv.imgcodecs.Imgcodecs;
import org.springframework.stereotype.Component;


@Component
@Slf4j
public class Hello {
    @PostConstruct
    void  HelloTest(){
        Mat mat = Mat.eye(3, 3, CvType.CV_8UC1);  // 创建一个3x3的单位矩阵

        log.info("Hello,OpenCv!");
        log.info("\nMat: {}" , mat.dump());
    }
}
